﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="dellist.aspx.cs" Inherits="org_manUser_dellist" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>无标题页</title>
    <style type="text/css">

a:link
{
	color: #000066;
}
.imgborder
{
    border: 1px solid #FFFFFF;
}
    </style>
    <link href="../../css/main.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div id="main">
        <div id="content" style="width:100%">
            <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                ConnectionString="<%$ ConnectionStrings:appConnectionString %>" 
                
                SelectCommand="SELECT users.userid, users.username, users.realname, users.sex, users.email, users.mphone, users.phone, users.address, users.postcode, users.organizationid, users.description FROM users INNER JOIN userrole ON users.userid = userrole.userid WHERE (userrole.roleid = 4) AND (users.organizationid = @organizationid)">
                <SelectParameters>
                    <asp:SessionParameter Name="organizationid" SessionField="organizationid" />
                </SelectParameters>
            </asp:SqlDataSource>
            <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
                BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" 
                CellPadding="3" DataKeyNames="userid" DataSourceID="SqlDataSource1" 
                Width="100%">
                <FooterStyle BackColor="White" ForeColor="#000066" />
                <RowStyle ForeColor="#000066" />
                <Columns>
                    <asp:BoundField DataField="userid" HeaderText="用户ID" InsertVisible="False" 
                        ReadOnly="True" SortExpression="userid" />
                    <asp:BoundField DataField="username" HeaderText="用户名" 
                        SortExpression="username" />
                    <asp:BoundField DataField="realname" HeaderText="真实姓名" 
                        SortExpression="realname" />
                    <asp:BoundField DataField="sex" HeaderText="性别" SortExpression="sex" />
                    <asp:BoundField DataField="email" HeaderText="E-mail" SortExpression="email" />
                    <asp:BoundField DataField="mphone" HeaderText="手机号码" SortExpression="mphone" />
                    <asp:BoundField DataField="phone" HeaderText="单位电话" SortExpression="phone" />
                    <asp:BoundField DataField="address" HeaderText="住址" SortExpression="address" />
                    <asp:BoundField DataField="postcode" HeaderText="邮编" 
                        SortExpression="postcode" />
                    <asp:BoundField DataField="organizationid" HeaderText="所属组织ID" 
                        SortExpression="organizationid" />
                    <asp:BoundField DataField="description" HeaderText="备注" 
                        SortExpression="description" />
                    <asp:HyperLinkField ControlStyle-CssClass="imgborder" DataNavigateUrlFields="username" 
                        DataNavigateUrlFormatString="edit2.aspx?un={0}" 
                        Text="&lt;img alt='' src='../../images/modi...gif' /&gt;" Visible="False">
<ControlStyle CssClass="imgborder"></ControlStyle>
                    </asp:HyperLinkField>
                    <asp:HyperLinkField ControlStyle-CssClass="imgborder" Text="&lt;img alt='' src='../../images/del.gif' /&gt;" 
                        DataNavigateUrlFields="username" 
                        DataNavigateUrlFormatString="del.aspx?un={0}" >
<ControlStyle CssClass="imgborder"></ControlStyle>
                    </asp:HyperLinkField>
                </Columns>
                <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
                <EmptyDataTemplate>
                    您当前还没有任何其他用户，前去<a href="new.aspx"><img alt="" src="../../images/new.gif" /></a>
                </EmptyDataTemplate>
                <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
                <HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" />
            </asp:GridView>
        </div>
    </div>
    </form>
</body>
</html>
